<?php
/**
 * created by zzy
 * date: 2017/11/30 16:48
 */
namespace App\Api\Service\Routes;

use Dingo\Api\Routing\Router;

class FormsRoute
{
    public function map(Router $router)
    {
        $router->group(['namespace' => 'Forms\Controllers', 'prefix'=>'forms'], function ($router) {

            $router->post('takein', 'StockController@takein');
            $router->post('takeinList', 'StockController@takeinList');
            $router->post('course', 'OrderController@course');
            $router->post('courseList', 'OrderController@courseList');
            $router->post('scrap', 'ScrapController@index');
            $router->post('scrapList', 'ScrapController@lists');
            $router->post('scrapProcess', 'ScrapController@process');


            $router->get('takein', 'StockController@takein');
            $router->get('takeinList', 'StockController@takeinList');
            $router->get('course', 'OrderController@course');
            $router->get('courseList', 'OrderController@courseList');
            $router->get('scrap', 'ScrapController@index');
            $router->get('scrapList', 'ScrapController@lists');
            $router->get('scrapProcess', 'ScrapController@process');
        });
    }
}